package org.spring.springboot.app.mail.mailBind.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

@ApiModel(description = "校验邮箱验证码参数")
public class ValidMailBindVO {

    @ApiModelProperty(value = "用户ID", hidden = false)
    @NotBlank(message = "用户ID不能为空")
    private String loginId;
    @ApiModelProperty(value = "邮箱验证码", hidden = false)
    @Length(min = 4, max = 4, message = "邮箱验证码为4个字符")
    @NotBlank(message = "邮箱验证码不能为空")
    private String mailCode;
    @ApiModelProperty(value = "新邮箱", hidden = false)
    @NotBlank(message = "用户新邮箱不能为空")
    private String email;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getMailCode() {
        return mailCode;
    }

    public void setMailCode(String mailCode) {
        this.mailCode = mailCode == null ? null : mailCode.trim();
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId == null ? null : loginId.trim();
    }
}
